package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Knowledgepoint entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "knowledgepoint", catalog = "assistedlearning")
public class Knowledgepoint implements java.io.Serializable {

    // Fields

    private int knowledgeid;
    private String chapterid;
    private String description;
    private String path;
    private String knowledgetype;
    private String example;
    private String title;
    // Constructors

    /** default constructor */
    public Knowledgepoint() {
    }

    /** minimal constructor */
    public Knowledgepoint(String chapterid, String knowledgetype) {
	this.chapterid = chapterid;
	this.knowledgetype = knowledgetype;
    }

    /** full constructor */
    public Knowledgepoint(String chapterid, String description, 
	    String knowledgetype, String example,String path) {
	this.chapterid = chapterid;
	this.description = description;
	this.path = path;
	this.knowledgetype = knowledgetype;
	this.example = example;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "knowledgeid", unique = true, nullable = false)
    public int getKnowledgeid() {
	return this.knowledgeid;
    }

    public void setKnowledgeid(int knowledgeid) {
	this.knowledgeid = knowledgeid;
    }

    @Column(name = "chapterid", nullable = false, length = 6)
    public String getChapterid() {
	return this.chapterid;
    }

    public void setChapterid(String chapterid) {
	this.chapterid = chapterid;
    }

    @Column(name = "description", length = 1024)
    public String getDescription() {
	return this.description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    @Column(name = "path", length = 120)
    public String getPath() {
	return this.path;
    }

    public void setPath(String path) {
	this.path = path;
    }

    @Column(name = "knowledgetype", nullable = false, length = 10)
    public String getKnowledgetype() {
	return this.knowledgetype;
    }

    public void setKnowledgetype(String knowledgetype) {
	this.knowledgetype = knowledgetype;
    }

    @Column(name = "example", length = 512)
    public String getExample() {
	return this.example;
    }

    public void setExample(String example) {
	this.example = example;
    }
    
    @Column(name = "title", length = 40)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    
}